<template>
  <div>
    <h3>B组件：{{age}}</h3>
    <button @click="send">将数组发送给C组件</button>
  </div>
</template>

<script>
  import bus from '../../Utils/bus'
  export default {
    name: 'BindSubB',
    data() {
      return {
        age: 20
      }
    },
    methods: {
      send() {
        bus.$emit('data-b', this.age);
      }
    }
  }
</script>

<style scoped>

</style>
